﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain
{
    [Table("Roles")]
    public class Roles
    {
        [Key]
        public int Id {  get; set; }

        public string? Name { get; set; }

        public string? CreatePeople { get; set; }

        public DateTime CreateTime { get; set; }

        public string? UpdPeople { get; set; }

        public DateTime? UpdTime { get; set; }

        public bool IsDel{ get; set; }
    }

    [Table("UserRole")]
    public class UserRole
    {
        [Key]
        public int Id { get; set; }

        public int RoleId { get; set; }

        public int UserId { get; set; }

    }
}
